package com.guet.niit.Admin.controller;

import com.guet.niit.Admin.service.AgentService;

import java.util.Scanner;

public class AgentController {
    public void agentMenu() {
        System.out.println("----------------");
        System.out.println("---1.代理商添加---");
        System.out.println("---2.代理商删除---");
        System.out.println("---3.代理商更改---");
        System.out.println("---4.代理商查询---");
        System.out.println("----------------");
        Scanner scanner = new Scanner(System.in);
        int option = scanner.nextInt();
        switch (option) {

            //代理商添加
            case 1:
                AgentService agentService = new AgentService();
                agentService.agentAdd();
                break;

            //代理商删除
            case 2:
                AgentService agentService1 = new AgentService();
                agentService1.agentDelete();
                break;

            //代理商更改
            case 3:
                AgentService agentService2 = new AgentService();
                agentService2.agentModify();
                break;

            //代理商查询
            case 4:
                AgentService agentService3 = new AgentService();
                agentService3.agentInquire();
                break;
        }
    }

}
